package com.example.intelligenttransportation;

import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.preference.PreferenceManager;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;

public class LogoActivity extends AppCompatActivity {
    private SharedPreferences sp;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_logo);
        initialization();
    }
    private void initialization(){
        new Thread(new Runnable() {
            @Override
            public void run() {
                sp = PreferenceManager.getDefaultSharedPreferences(LogoActivity.this);
                sp=getSharedPreferences("sign", Context.MODE_PRIVATE);
                SharedPreferences.Editor edit = sp.edit();
                edit.putString("sign","sign");
                edit.commit();
                try {
                    Thread.sleep(5000);
                } catch (InterruptedException e) {
                    e.printStackTrace();
                }
                startActivity(new Intent(LogoActivity.this, MainActivity.class));
            }

        }).start();
    }
}
